/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.applicatioN.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Slim
 */
@Embeddable
public class Exiger2PK implements Serializable {
    @Basic(optional = false)
    @Column(name = "SOFTWARE")
    private String software;
    @Basic(optional = false)
    @Column(name = "NOM_POSTE")
    private String nomPoste;

    public Exiger2PK() {
    }

    public Exiger2PK(String software, String nomPoste) {
        this.software = software;
        this.nomPoste = nomPoste;
    }

    public String getSoftware() {
        return software;
    }

    public void setSoftware(String software) {
        this.software = software;
    }

    public String getNomPoste() {
        return nomPoste;
    }

    public void setNomPoste(String nomPoste) {
        this.nomPoste = nomPoste;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (software != null ? software.hashCode() : 0);
        hash += (nomPoste != null ? nomPoste.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Exiger2PK)) {
            return false;
        }
        Exiger2PK other = (Exiger2PK) object;
        if ((this.software == null && other.software != null) || (this.software != null && !this.software.equals(other.software))) {
            return false;
        }
        if ((this.nomPoste == null && other.nomPoste != null) || (this.nomPoste != null && !this.nomPoste.equals(other.nomPoste))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.applicatioN.entities.Exiger2PK[ software=" + software + ", nomPoste=" + nomPoste + " ]";
    }
    
}
